package cn.cdeden.knowledge.domain.dto;

//import io.swagger.annotations.ApiModelProperty;
import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
import cn.cdeden.knowledge.domain.EnterpriseFilesTree;
import cn.cdeden.knowledge.domain.EnterpriseFolderTree;
import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
//@Builder
//@Accessors(chain = true)
//@NoArgsConstructor
//@AllArgsConstructor
//@EqualsAndHashCode(callSuper = false)
@AutoMappers({@AutoMapper(target = EnterpriseFilesTree.class), @AutoMapper(target = FilesTree.class), @AutoMapper(target = EnterpriseFolderTree.class)})
public class EnterpriseFilesTreeDto {
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "编号")
    private Long id;

//    @ApiModelProperty(value = "文件编码")
    private String fileEncode;

//    @ApiModelProperty(value = "父亲编号")
    private String parentId;

//    @ApiModelProperty(value = "父亲编号集合")
    private String parentIds;

//    @ApiModelProperty(value = "文件编号")
    private Long fileId;

//    @ApiModelProperty(value = "后缀名")
    private String suffix;

//    @ApiModelProperty(value = "名称")
    private String realName;

//    @ApiModelProperty(value = "置顶")
    private Integer sort;

//    @ApiModelProperty(value = "上级路径")
    private String superiorsPath;

//    @ApiModelProperty(value = "路径")
    private String path;

//    @ApiModelProperty(value = "类型")
    private String type;

//    @ApiModelProperty(value = "储存表id")
    private String storageId;

//    @ApiModelProperty(value = "储存服务器类型")
    private String storageType;

//    @ApiModelProperty(value = "文件大小")
    private Long size;

//    @ApiModelProperty(value = "关连状态")
    private String linkingState;

//    @ApiModelProperty(value = "收藏")
    private String collection;

//    @ApiModelProperty(value = "关注")
    private String attention;

//    @ApiModelProperty(value = "锁定")
    private String isLock;

//    @ApiModelProperty(value = "显示栏目类型")
    private String columnType;

//    @ApiModelProperty(value = "版本号")
    private String editionName;

//    @ApiModelProperty(value = "版本编码")
    private String edition;

//    @ApiModelProperty(value = "关联父文件")
    private String parentFile;

    private String aiDatasetId;

//    @ApiModelProperty(value = "生效日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date effectiveDate;

//    @ApiModelProperty(value = "过期日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date expirationDate;

//    @ApiModelProperty(value = "创建编号")
    private String createId;

    private String imageUrl;

    @Translation(type = TransConstant.OSS_ID_TO_URL,mapper = "imageUrl")
    private String coverUrl;

//    @ApiModelProperty(value = "创建者")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME,mapper = "createId")
    private String createBy;

    private String creator;

//    @ApiModelProperty(value = "创建日期")
    private Date createTime;

//    @ApiModelProperty(value = "更新编号")
    private String updateId;

//    @ApiModelProperty(value = "更新者")
//    @Translation(type = TransConstant.USER_ID_TO_USER_NICK_NAME)
    private String updateBy;

//    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

//    @ApiModelProperty(value = "删除编号")
    private String deleteId;

//    @ApiModelProperty(value = "删除者")
    private String deleteBy;

//    @ApiModelProperty(value = "删除时间")
    private Date deleteTime;

//    @ApiModelProperty(value = "可查看人编号")
    private List<Long> users;

//    @ApiModelProperty(value = "库的类型")
    private String libraryType = "enterprise";

//    @ApiModelProperty(value = "是否继承")
    private String extend;

//    @ApiModelProperty(value = "模板名称")
    private String templateName;

//    @ApiModelProperty(value = "权限（新增成员所使用到的权限）")
    private String perm;

//    @ApiModelProperty(value = "描述")
    private String remarks;
//    @ApiModelProperty(value = "知识库标记")
    private Integer knowledgeMark;

//    @ApiModelProperty(value = "水印id")
    private Long waterMarkId;

    private String insertPerm;

//    @ApiModelProperty(value = "标记tms资源")
    private String toTms;

    private Boolean isInsertPerm;

    private String classify;

    private String classifyName;

    private Long libraryId;

    private Boolean isKnowledge = false;

//    @ApiModelProperty(value = "子数据")
    private List<EnterpriseFilesTreeDto> children = new ArrayList<>();

    private String fileDatasetId;

    private String esId;

    private Long views;

    //    @ApiModelProperty(value = "模板名称")
    private String templateId;

    private String location;

    private List<Long> ids;
}
